Add experimental SBOM attestations#115
Draft
bomly-guy wants to merge 9 commits into
Draft
Conversation
Add an experimental bomly sbom command group with attest and verify subcommands. The MVP supports file, directory, git, and immutable container digest subjects. Directory scans are modeled as one whole-folder subject so multi-subproject folders produce one attested SBOM claim. Git subjects require a clean worktree, and container subjects require image@sha256 digest references. Add internal/attestation for subject resolution, in-toto statement construction, Sigstore bundle-format DSSE signing, verification, and verified SBOM extraction. The experimental local-key/keyless bundle path avoids external cosign shelling while keeping the bundle structure portable. Document the experimental workflow, trust model, limitations, and TDD guidance for future security-sensitive features. Private Cloud planning notes are intentionally excluded from Git.
Contributor
Bomly Diff SummaryCompared Overview
Dependency ChangesSummary: 1 added, 0 changed, 0 removed. Added Dependencies
Vulnerabilities✅ No vulnerability changes. License Changes✅ No license changes. Project Posture✅ No project posture changes (or Policy FindingsSummary: 1 introduced, 0 persisted, 0 resolved. Introduced Findings
|
Collaborator
Author
|
@copilot resolve the merge conflicts in this pull request |
Contributor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds an experimental SBOM attestation workflow under a new
bomly sbomcommand group.bomly sbom attestandbomly sbom verify.file:<path>,dir:<path>,git, andcontainer:<image@sha256:...>subjects.internal/attestationfor subject resolution, in-toto statement construction, Sigstore bundle-format DSSE signing, verification, and verified SBOM extraction.Notes
The MVP uses embedded bundle-format signing/verification and does not require users to shell out to
cosign. The experimental--keylessmode creates a self-contained local bundle for convenience; Fulcio/OIDC certificate identity verification is intentionally deferred and guarded by validation errors.Validation
go test ./internal/cli ./internal/attestationmake test